package string02;

public class RegularExpression {
    public static void main(String[] args) {
//        /w+@[a-zA-z0-9]+((.){1}[a-zA-z]+)+
                String email = "mvpcrisp@163.com";
                String regex = "[a-zA-z0-9]+@[a-zA-z0-9]+(\\.[a-zA-z]+)+";

                boolean match = email.matches(regex);
                if (match){
                    System.out.println("是正确的格式");
                }else {
                    System.out.println("是错误的格式");
                }

    }
}
